import request from '@/utils/request'

// 查询零工出勤天数列表
export function listOddjobattendance(query) {
  return request({
    url: '/sl/oddjobattendance/list',
    method: 'get',
    params: query
  })
}

// 查询零工出勤天数详细
export function getOddjobattendance(attendanceId) {
  return request({
    url: '/sl/oddjobattendance/' + attendanceId,
    method: 'get'
  })
}

// 新增零工出勤天数
export function addOddjobattendance(data) {
  return request({
    url: '/sl/oddjobattendance',
    method: 'post',
    data: data
  })
}

// 修改零工出勤天数
export function updateOddjobattendance(data) {
  return request({
    url: '/sl/oddjobattendance',
    method: 'put',
    data: data
  })
}

// 删除零工出勤天数
export function delOddjobattendance(attendanceId) {
  return request({
    url: '/sl/oddjobattendance/' + attendanceId,
    method: 'delete'
  })
}

// 查询所有出勤天数
export function allOddjobattendance(data) {
  return request({
    url: '/sl/oddjobattendance/all',
    method: 'post',
    data: data
  })
}

// 修改出勤天数list
export function updateOddjobattendanceList(data) {
  return request({
    url: '/sl/oddjobattendance/upal',
    method: 'put',
    data: data
  })
}